package com.tools.web.interceptor.access;

import com.tools.common.object.Note;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 拦截请求并判断是否授权的管理器
 * */
@Note("拦截请求并判断是否授权的管理器")
public interface AccessManager extends HandlerInterceptor {

    @Note("核心拦截逻辑")
    boolean preAuthorize(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception;
}
